package com.xhtt.modules.cfg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.modules.cfg.entity.CfgHoseInfo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 软管库 服务类
 * </p>
 *
 * @author feipc
 * @since 2019-02-20
 */
public interface CfgHoseInfoService extends IService<CfgHoseInfo> {

    PageUtils queryPage(Map<String, Object> params);

    void addHose(CfgHoseInfo cfgHoseInfo);

    void updateHose(CfgHoseInfo cfgHoseInfo);

    void updateUsed(List<Integer> upHoseIds, Integer productId,String productName);

    List<CfgHoseInfo> validList(Integer productId,String pressureLevel);

    /**
     * 清空管子的当前产品
     * @param hoseIdList
     */
    void flushProduct(List<Integer> hoseIdList);

    // 导入
    void upload(Map<Long, Map<Integer, String>> params);

    // 导出
    void exportExcel(HttpServletResponse response, Map<String, Object> params);

    void updateUnUsed(List<Integer> upHoseIds);

    PageUtils logList(Map<String,Object> params);

    void updateHoseRfid(CfgHoseInfo cfgHoseInfo);
}
